package com.mywebsite.Dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mywebsite.Domain.User;
import org.apache.ibatis.annotations.*;



@Mapper
public interface UserDao extends BaseMapper<User> {
    @Select("select * from userinfo where username = #{username}")
   User getByName(String username);

//    @Update("update userinfo set username = #{username}, password = #{password}, useremail = #{useremail}, userinfo = #{userinfo} where id = #{id}")
//    public Integer updateuser(String username, String password, String useremail, String userinfo, Integer id );

    @UpdateProvider(type = SqlProvider.class, method = "updateuserinfo")
    void update(User user);

}

